package dierweek;

public class sushu1 {
    public static void main(String[] args) {
        int num,n=0;
        for (num = 2; num < 100; num++) {
            Boolean flag=true;
            for (int i = 2; i < num; i++) {
                if (num%2==0){
                    flag=false;
                    break;
                }
            }
            if (flag){
                n++;
                System.out.print(num+"\t\t");
                if (n%5==0){
                    System.out.println(num+"是素数");
                }
            }
        }
    }
}
